/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tmp.ac.engin.setting;

import tmp.ac.lib.tools.uiUtil;

/**
 *
 * @author ismail
 */
public class genSetting {

    ac.uitls.propertiesOperation op = new ac.uitls.propertiesOperation();

    public String updateSetting(String[] data) {
        String returnData = "";
        returnData += op.setProperty("lang", data[0]);
        returnData += op.setProperty("style", data[0]);
    if (returnData.trim().equals("")){
        returnData=op.getWord("label.updateMessage");
        }
        return returnData;
    }

    public String defSetting() {

        String returnData = "";
        returnData += op.setProperty("lang", "en");
        returnData += op.setProperty("style", "default");

        if (returnData.trim().equals("")){
        returnData=op.getWord("label.defaultMessage");
        }


        return returnData;
    }

    public String[] getGenSetting() {
        String[] returnData = {op.getProperty("lang")};
        return returnData;
    }
    
    
    
}
